# -*- coding: utf-8 -*-
# @Time : 2024/4/17 11:27 AM 
# @Author : Wayne
# @Email : 1
# @File : pa.py
# @Project : young_python_demo
# @DESCRIPTION :


import requests

url = "https://szzdjc.cnemc.cn:8070/GJZ/Business/Publish/Main.html"
headers = {"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"}  # 添加必要的请求头

response = requests.get(url, headers=headers)

if response.status_code == 200:
    data = response.json()  # 如果返回的是JSON格式数据
    # 或者
    data = response.text  # 如果返回的是文本内容
    # 然后处理data中的内容
else:
    print(f"请求失败，状态码：{response.status_code}")
